-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes error in Articulation where default_joint_stiffness and default_joint_damping is not correctly set if actuator is instance of ImplicitActuator #1580
Conversation
@@ -0,0 +1,117 @@ | |||
name: Build and Push Docker Compose Services |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reason for this addition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I pushed my code to wrong branch for this!
# Store the actual default stiffness and damping values for explicit actuators (not written the sim) | ||
self._data.default_joint_stiffness[:, actuator.joint_indices] = actuator.stiffness | ||
self._data.default_joint_damping[:, actuator.joint_indices] = actuator.damping | ||
# Store the actual default stiffness and damping values for explicit actuators (not written the sim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also update the comment here since it also applies to implicit actuators now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just updated the comment! Thanks for reviewing
…_joint_damping is not correctly set if actuator is instance of ImplicitActuator
Co-authored-by: James Tigue <[email protected]> Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Description
Before the fix, the field, default_joint_stiffness, and default_joint_damping in omni.isaac.lab.assets.Articulation will be
the default value configured Joint Drive property in usd file, and defining a new value with actuator config will not have effect
if the actuator is type ImplicitActuator
after the fix, all actuator types will be able to override default_joint_stiffness and default_joint_damping
Fixes #1552
Type of change
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there